﻿// =================================================================== 
// 数据访问层接口层(GDIT.Pattern)
//====================================================================
// 文件：ISceneryPicInfo.cs
// 项目名称：学院网站
// 创建时间：2012-08-08
// 负责人：ChenZhiGang
//引用DevExpress.Xpo程序集
// 程序集介绍：风貌信息数据访问层接口
// ===================================================================
using GDIT.Model;
using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace GDIT.Pattern
{
    public interface ISceneryPicInfo
    {
        /// <summary>
        /// 根据输入的类型对风貌进行查询并返回
        /// </summary>
        /// <param name="typeName">类型</param>
        /// <returns></returns>
        IDataReader SelectSceneryPicInfoByType(string typeName);

        /// <summary>
        /// 新增加一篇公告
        /// </summary>
        /// <param name="bulletin">需要增加的公告对象</param>
        /// <returns>1：新增成功  0：新增失败</returns>
        int InsertSceneryPicInfo(Mtb_SceneryPicInfo bulletin);

        /// <summary>
        /// 删除一篇公告
        /// </summary>
        /// <param name="bulletin">需要删除的公告对象</param>
        /// <returns>1：删除成功  0：删除失败</returns>
        int DeleteSceneryPicInfo(int id);

        /// <summary>
        /// 更新一篇公告
        /// </summary>
        /// <param name="bulletin">需要更新的公告的对象</param>
        /// <returns>1：更新成功  0：更新失败</returns>
        int UpdateSceneryPicInfo(Mtb_SceneryPicInfo bulletin);
    }
}
